//***********************************************
//
//      Filename: homework.java
//
//        Author: wwb
//        Mails: 1274860621@qq.com
//        Create: 2018-03-26 12:22:14
// Last Modified: 2018-03-26 12:22:14
//***********************************************
import java.util.Random;
public class homework
{
    public static void main(String[]args)
    {
        Random generator = new Random();
        int num;

        num = generator.nextInt(10) * 2 - 10;
        System.out.println("output: " + num);
        System.out.println("TobinayString: " + Integer.toBinaryString(num));
        System.out.println("TohexString: " + Integer.toHexString(num));
    }
}
